$(function (){
	try {
		$('.editorBox label span').css({"position":"relative"})
		$('.editorBox label span img').css({"display":"none","position":"absolute","left":"0px","top":"20px"})
		$('.editorBox label').on('mouseover', function (){
			$(this).find('img').css({"display":""})
			$(this).on("mouseenter", function (){
				
			}).on("mouseleave",function (){
				$(this).find('img').css({"display":"none"})
			});
		});
	}catch (e) { }

	CheckTplDir();
	CheckAutoLogin();

	WindowHeight(0);
});


// 检查编辑器是否存在
function CheckEditorMode(){
	var editorVal
	for (var i=0; i<$name('editorMode').length; i++){
		if ($name('editorMode')[i].checked){
			editorVal = $name('editorMode')[i].value;
		}
	}
	AjaxGetDeal("readDeal.php?mudi=checkEditorMode&editorMode="+ editorVal);
}


// 检查表单
function CheckForm(){

}


// 检测后台模板
function CheckTplDir(){
	if ($id('tplDir_youyou').checked){
		$("#tplDirYouyou").css("display","");
	}else{
		$("#tplDirYouyou").css("display","none");
	}
	if ($id('tplDir_default').checked){
		$("#tplDirDefault").css("display","");
	}else{
		$("#tplDirDefault").css("display","none");
	}
	WindowHeight(0);
}


// 检测快捷登录
function CheckAutoLogin(){
	if ($id('isAutoLogin1').checked){
		$("#autoLoginBox").css("display","");
	}else{
		$("#autoLoginBox").css("display","none");
	}
	WindowHeight(0);
}
